<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title><?php echo $config['cfg_webname']; ?> - 个人资料</title>
    <link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body>
<div align="center">

    <include file="Template/default/user/user_header.php"/>
    <div class="main" align="left">
        <div class="clear"></div>

        <include file="Template/default/user/user_left.php"/>
        <div class="userRight">
            <div class="userRightContent">
                <div class="upfileDiv" id="upfileDiv">
                    <div class="upfileClose" onclick="$('#upfileDiv').fadeOut(300)">关闭</div>
                    <iframe width="300" height="100" style=" padding:0px; margin:0px;" src="{:U('User/manager/editUserFace','','')}" frameborder="0" scrolling="no"></iframe>
                </div>
                <div class="userRightContentTop">个人资料</div>
                <form action="{:U('User/manager/user')}" onsubmit="return valiForm()" method="post" name="userMessEdit">
                    <table width="810" class="userMessTable" border="0" cellspacing="0" cellpadding="5">
                        <tr>
                            <td class="head" width="100">头像</td>
                            <td width="390">
                                <img src="<?php if(empty($user['face'])){ echo "__THEME_PATH__images/nophoto.png"; }else{echo $user['face'] ;} ?>" width="100" height="100" />
                                <input value="" name="pic" type="hidden" /> <a href="#nogo" onclick="$('#upfileDiv').fadeIn(800)">[上传]</a></td>
                            <td width="230" class="commentary"></td>
                        </tr>
                        <tr>
                            <td class="head">姓名</td>
                            <td><input name="name" value="{$user.user_name}" type="text" class="inputText" size="25" /></td>
                            <td class="commentary">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="head">手机</td>
                            <td><input name="tel" value="{$user.phone}" type="text" class="inputText" size="25" /></td>
                            <td class="commentary">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="head">ＱＱ</td>
                            <td><input name="qq" value="{$user.qq}" type="text" class="inputText" size="25" /></td>
                            <td class="commentary">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="head">微信</td>
                            <td><input name="wx" value="{$user.weichat}" type="text" class="inputText" size="25" /></td>
                            <td class="commentary">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="head">Email</td>
                            <td><input name="email" value="{$user.email}" type="text"  class="inputText" size="25" /></td>
                            <td class="commentary"><img src="__THEME_PATH__images/wenhao.gif" />用于找回密码和接收系统信息，提交后不可修改！</td>
                        </tr>
                        <tr>
                            <td class="head">个人说明</td>
                            <td><textarea class="inputText" name="about" rows="6" cols="50">{$user.describe}</textarea></td>
                            <td class="commentary">&nbsp;</td>
                        </tr>
                        <tr><td></td><td><input type="submit" class="inputSubmit" value="修改资料" /></td><td></td></tr>
                    </table>
                </form>
                <script language="javascript" type="text/javascript">
                    function valiForm()
                    {
                        if(document.userMessEdit.name.value.length>50)
                        {
                            alert("填写企业名称请保持在50字以内！")
                            return false
                        }
                        if(document.userMessEdit.address_1.value.length>100)
                        {
                            alert("填写企业地址请保持在100字以内！")
                            return false
                        }
                        if(document.userMessEdit.phone.value.length>15)
                        {
                            alert("填写电话号请保持在15字以内！")
                            return false
                        }
                        if(document.userMessEdit.tel.value.length>11)
                        {
                            alert("填写手机号请保持在11字以内！")
                            return false
                        }
                        if(document.userMessEdit.qq.value.length>11)
                        {
                            alert("填写QQ号请保持在11字以内！")
                            return false
                        }
                        return true
                    }
                </script>
            </div>
        </div>
    </div></div>
</body>
</html>
